/*
 * @Author: fisher
 * @Date: 2024-02-18 19:24:55
 * @LastEditors: fisher luthor-li@qq.com
 * @LastEditTime: 2024-03-04 16:21:45
 * @FilePath: \allback\routes\ueinstance.js
 * @Description:
 */
const Router = require('koa-router')
const router = new Router()
const ueinstanceController = require('../controllers/ueinstanceController')
// 创建实例
router.post('/createInstance', ueinstanceController.createInstance)
// 根据id获取实例信息
router.get('/getInstanceById', ueinstanceController.getInstanceById)
// 获取实例列表，支持分页、模糊查询
router.post('/getInstanceList', ueinstanceController.getInstanceList)
// 更新实例信息
router.post('/updateInstance', ueinstanceController.updateInstance)
// 删除一个或多个实例
router.post('/deleteInstance', ueinstanceController.deleteInstance)
// 启动一个或多个实例
router.post('/startInstances', ueinstanceController.startInstances)
// 停止一个或多个实例
router.post('/stopInstances', ueinstanceController.stopInstances)
// router.post('/stopInstanceByid', ueinstanceController.stopInstanceByid)
// 获取实例列表状态
router.get('/getInstanceStatus', ueinstanceController.getInstanceStatus)
// 用户申请连接
router.post('/applyForConnect', ueinstanceController.applyForConnect)
// 获取信令连接信息
router.post('/msgBySignal', ueinstanceController.msgBySignal)
// 关闭客户端连接
router.post('/closeClient', ueinstanceController.closeClient)
module.exports = router
